package com.wpp.Config;

import com.wpp.config.ZkConfigCenter;
import com.wpp.register.ZkRegisterCenter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname ServiceConfig
 * @Description TODO
 * @Date 2020/12/7 22:00
 * @Created by wpp25
 */
@Configuration
public class ServiceConfig {

    /**
     *  将 zk注册中心 放到容器中
     * @return
     */
    @Bean
    public ZkRegisterCenter registerCenter() {
        return new ZkRegisterCenter();
    }

    @Bean
    public ZkConfigCenter configCenter() {
        return new ZkConfigCenter();
    }
}
